package org.footito.android.api;

public class GroupsTeamFromAPI {

	private int id;
	private String name;
	
	public GroupsTeamFromAPI(int id, String name) {
		this.id = id;
		this.name = name;
	}

	public boolean isValid() {
		if (id < 0)
			return false;
		if (name == null || name.equalsIgnoreCase(""))
			return false;
		return true;
	}

	public int getId() {
		return id;
	}
	
	public String getName() {
		return name;
	}
}
